<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
        <head><title>class CalendarService in com.google.gdata.calendar</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF8"></meta><meta content="scaladoc (version 2.7.1.r14655-b20080415113712)" name="generator"></meta><link href="../../../../style.css" type="text/css" rel="stylesheet"></link><script type="text/javascript" src="../../../../script.js"></script>
        </head>
        <body onload="init()">
        <table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">GData Scala Client Library Documentation</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
        
      <div class="entity">
        <a href="../../../../com/google/gdata/calendar$package.html" target="_self">com.google.gdata.calendar</a>
        <br></br>
        <span class="entity">class  CalendarService</span>
      </div><hr></hr>
      <div class="source">
        [source: <a href="" class="com/google/gdata/calendar/CalendarService"><code>com/google/gdata/calendar/CalendarService.scala</code></a>]
      </div><hr></hr>
      <a name="CalendarService"></a><dl>
      <dt>
        
        <code></code>
        <code>class</code>
        <em>CalendarService</em>(<em>appName</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>)
      </dt>
      <dd><code> extends </code><a href="../../../../com/google/gdata/Service.html" target="_self">Service</a></dd>
    </dl>
      <dl><dd>A service class for connecting to the calendar service. It provides
 methods for getting a user's calendars, managing events and calendar
 subscriptions.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Author</b></dt><dd>Iulian Dragos</dd><dt style="margin:10px 0 0 20px;">
        <b>See Also</b></dt><dd><a href="http://code.google.com/apis/calendar/developers_guide_protocol.html">http://code.google.com/apis/calendar/developers_guide_protocol.html</a></dd><dd><a href="../../../../com/google/gdata/Service.html" target="_self">com.google.gdata.Service</a></dd></dl>
    
      

<table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Value Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code> val</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#aclFeed" target="_self">aclFeed</a></em>
         : <a href="../../../../com/google/gdata/calendar/StdAclFeed.html" target="_self">StdAclFeed</a>
        
        <div>The access control list feed.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> val</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#comments" target="_self">comments</a></em>
         : <a href="../../../../com/google/gdata/data/StdAtomFeed.html" target="_self">StdAtomFeed</a>
        
        <div>A standard comment feed.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> val</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#contacts" target="_self">contacts</a></em>
         : <a href="../../../../com/google/gdata/data/kinds/StdContactEntries.html" target="_self">StdContactEntries</a>
        
        <div>A standard contact entry, that might be part of a feed.</div>
      </td>
    </tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Values and Variables inherited from <a href="../../../../com/google/gdata/Service.html" target="_self">Service</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="../../../../com/google/gdata/Service.html#requestFactory" target="_self">requestFactory</a>, <a href="../../../../com/google/gdata/Service.html#authTokenFactory" target="_self">authTokenFactory</a>, <a href="../../../../com/google/gdata/Service.html#user" target="_self">user</a>
        </td></tr>
      </table>
<table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Method Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#addCalendar%28String%29" target="_self">addCalendar</a></em>
        (<em>id</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>
        
        <div>Add a new calendar subscription to the given calendar id. Returns a calendar entry
   possibly updated by the server.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#addEvent%28java.net.URL%2CCalendarService.this.eventsFeed.Entry%29" target="_self">addEvent</a></em>
        (<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>, <em>e</em> : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>) : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>
        
        <div>Add the given event to the user's calendar. Returns the event with possible new
   fields added by the server. The event should not have the id field set.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#getAccessControlList%28java.net.URL%29" target="_self">getAccessControlList</a></em>
        (<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
        
        <div>Retrieve the access control list for the calender at the given URL. The acl feed URL
   is found in a link element with rel set to http//schemas.google.com/acl/2007#accessControlList.
   Only owners of a calendar can retrieve the ACL feed.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#getAccessControlList%28CalendarService.this.calendarsFeed.Entry%29" target="_self">getAccessControlList</a></em>
        (<em>cal</em> : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>]
        
        <div>Retrieve the access control list for the given calender. Only owners of a calendar
   can retrieve the ACL feed. Returns the ACL feed if the calendar has the ACL link,
   or None.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#getAllUserCalendars" target="_self">getAllUserCalendars</a></em>
         : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
        
        <div>Retrieve all user calendars. This is a read/write feed and needs authentication.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#getCalendars%28java.net.URL%29" target="_self">getCalendars</a></em>
        (<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
        
        <div>Retrieve calendars found at the given URL.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#getCalendars%28String%29" target="_self">getCalendars</a></em>
        (<em>url</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
        
        <div>Retrieve calendars found at the given URL.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#getEvents%28java.net.URL%29" target="_self">getEvents</a></em>
        (<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
        
        <div>Retrieve events found at the given URL.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#getEvents%28String%2CString%2Ccom.google.gdata.Query%29" target="_self">getEvents</a></em>
        (<em>visibility</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>projection</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>q</em> : <a href="../../../../com/google/gdata/Query.html" target="_self">Query</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
        
        <div>Retrieve events based on their visibility and with the amount of detail given by
   the 'projection' parameter.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#getEvents%28String%2CString%2CString%2Ccom.google.gdata.Query%29" target="_self">getEvents</a></em>
        (<em>username</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>visibility</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>projection</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>q</em> : <a href="../../../../com/google/gdata/Query.html" target="_self">Query</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
        
        <div>Retrieve events for the given user, based on their visibility and with the amount 
   of detail given by the 'projection' parameter.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#getEvents%28String%29" target="_self">getEvents</a></em>
        (<em>url</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
        
        <div>Retrieve events found at the given URL.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#getOwnedUserCalendars" target="_self">getOwnedUserCalendars</a></em>
         : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
        
        <div>Retrieve calendars that a user owns. This is a read/write feed and needs authentication.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#updateCalendar%28CalendarService.this.calendarsFeed.Entry%29" target="_self">updateCalendar</a></em>
        (<em>c</em> : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>) : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>
        
        <div>Update the given calendar subscription. The entry should have a link with a 'rel'
   field set to 'edit'. This method will connect to that link and issue an update request.
   Returns the updated calendar entry.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#updateCalendar%28java.net.URL%2CCalendarService.this.calendarsFeed.Entry%29" target="_self">updateCalendar</a></em>
        (<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>, <em>c</em> : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>) : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>
        
        <div>Update the given calendar subscription.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#updateEvent%28CalendarService.this.eventsFeed.Entry%29" target="_self">updateEvent</a></em>
        (<em>e</em> : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>) : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>
        
        <div>Update the given event on the server. Returns the updated event, as returned by
   the server. The given event should have a link with a 'rel' field set to 'edit'.
   This method will connect to that link and issue an update request.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.html#updateEvent%28java.net.URL%2CCalendarService.this.eventsFeed.Entry%29" target="_self">updateEvent</a></em>
        (<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>, <em>e</em> : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>) : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>
        
        <div>Update the given event on the server. Returns the updated event, as returned by
   the server.</div>
      </td>
    </tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="../../../../com/google/gdata/Service.html" target="_self">Service</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="../../../../com/google/gdata/Service.html#username" target="_self">username</a>, <a href="../../../../com/google/gdata/Service.html#setUserCredentials%28String%2CString%29" target="_self">setUserCredentials</a>, <a href="../../../../com/google/gdata/Service.html#setUserCredentials%28String%2CString%2CString%2CString%29" target="_self">setUserCredentials</a>, <a href="../../../../com/google/gdata/Service.html#query%28String%2Ccom.google.gdata.Query%2Ccom.google.xml.combinators.Picklers.Pickler%5BA%5D%29" target="_self">query</a>, <a href="../../../../com/google/gdata/Service.html#query%28String%2Ccom.google.xml.combinators.Picklers.Pickler%5BA%5D%29" target="_self">query</a>, <a href="../../../../com/google/gdata/Service.html#query%28java.net.URL%2Ccom.google.xml.combinators.Picklers.Pickler%5BA%5D%29" target="_self">query</a>, <a href="../../../../com/google/gdata/Service.html#insert%28java.net.URL%2CA%2Ccom.google.xml.combinators.Picklers.Pickler%5BA%5D%29" target="_self">insert</a>, <a href="../../../../com/google/gdata/Service.html#update%28java.net.URL%2CA%2Ccom.google.xml.combinators.Picklers.Pickler%5BA%5D%29" target="_self">update</a>, <a href="../../../../com/google/gdata/Service.html#delete%28java.net.URL%29" target="_self">delete</a>, <a href="../../../../com/google/gdata/Service.html#pickle%28com.google.gdata.client.GDataRequest%2CA%2Ccom.google.xml.combinators.Picklers.Pickler%5BA%5D%29" target="_self">pickle</a>, <a href="../../../../com/google/gdata/Service.html#fromFeedLink%28com.google.gdata.data.kinds.FeedLink%5BA%5D%2Ccom.google.xml.combinators.Picklers.Pickler%5BA%5D%29" target="_self">fromFeedLink</a>, <a href="../../../../com/google/gdata/Service.html#fromEntryLink%28com.google.gdata.data.kinds.EntryLink%5BA%5D%2Ccom.google.xml.combinators.Picklers.Pickler%5BA%5D%29" target="_self">fromEntryLink</a>, <a href="../../../../com/google/gdata/Service.html#mkRequest%28com.google.gdata.client.RequestMethod.Value%2CString%29" target="_self">mkRequest</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#getClass%28%29" target="_self">getClass</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#hashCode%28%29" target="_self">hashCode</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#equals%28Any%29" target="_self">equals</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#clone%28%29" target="_self">clone</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#toString%28%29" target="_self">toString</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notify%28%29" target="_self">notify</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notifyAll%28%29" target="_self">notifyAll</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%2CInt%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#finalize%28%29" target="_self">finalize</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%3D%3D%28AnyRef%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%21%3D%28AnyRef%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#eq%28AnyRef%29" target="_self">eq</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#ne%28AnyRef%29" target="_self">ne</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#synchronized%28T0%29" target="_self">synchronized</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html" target="_self">Any</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%3D%3D%28Any%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%21%3D%28Any%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#isInstanceOf" target="_self">isInstanceOf</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#asInstanceOf" target="_self">asInstanceOf</a>
        </td></tr>
      </table>

<table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Object Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code> object</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.calendarsFeed$object.html" target="_self">calendarsFeed</a></em>
        <code> extends </code><a href="../../../../com/google/gdata/calendar/StdCalendarsFeed.html" target="_self">StdCalendarsFeed</a>
        
        <div>A calendars feed.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> object</code>
      </td>
      <td class="signature">
        <em><a href="../../../../com/google/gdata/calendar/CalendarService.eventsFeed$object.html" target="_self">eventsFeed</a></em>
        <code> extends </code><a href="../../../../com/google/gdata/calendar/StdEventsFeed.html" target="_self">StdEventsFeed</a>
        
        <div>An events feed.</div>
      </td>
    </tr>
      </table>
      

<table summary="" cellpadding="3" class="member-detail">
          <tr><td class="title">Value Details</td></tr>
        </table><div><a name="comments"></a><dl>
      <dt>
        
        <code></code>
        <code>val</code>
        <em>comments</em> : <a href="../../../../com/google/gdata/data/StdAtomFeed.html" target="_self">StdAtomFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>A standard comment feed.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="contacts"></a><dl>
      <dt>
        
        <code></code>
        <code>val</code>
        <em>contacts</em> : <a href="../../../../com/google/gdata/data/kinds/StdContactEntries.html" target="_self">StdContactEntries</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>A standard contact entry, that might be part of a feed.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="aclFeed"></a><dl>
      <dt>
        
        <code></code>
        <code>val</code>
        <em>aclFeed</em> : <a href="../../../../com/google/gdata/calendar/StdAclFeed.html" target="_self">StdAclFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>The access control list feed.</dd></dl>
      <dl></dl>
    <hr></hr></div>
<table summary="" cellpadding="3" class="member-detail">
          <tr><td class="title">Method Details</td></tr>
        </table><div><a name="getCalendars%28java.net.URL%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>getCalendars</em>(<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Retrieve calendars found at the given URL.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>UnknownDocumentException - </code>if the feed is not a calendar feed.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="getCalendars%28String%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>getCalendars</em>(<em>url</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Retrieve calendars found at the given URL.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>UnknownDocumentException - </code>if the pickler is unsuccessful.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="getAllUserCalendars"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>getAllUserCalendars</em> : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Retrieve all user calendars. This is a read/write feed and needs authentication.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>See Also</b></dt><dd>Service.setUserCredentials</dd><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="getOwnedUserCalendars"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>getOwnedUserCalendars</em> : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Retrieve calendars that a user owns. This is a read/write feed and needs authentication.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>See Also</b></dt><dd>Service.setUserCredentials</dd><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="addCalendar%28String%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>addCalendar</em>(<em>id</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Add a new calendar subscription to the given calendar id. Returns a calendar entry
   possibly updated by the server.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="updateCalendar%28java.net.URL%2CCalendarService.this.calendarsFeed.Entry%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>updateCalendar</em>(<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>, <em>c</em> : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>) : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Update the given calendar subscription.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="updateCalendar%28CalendarService.this.calendarsFeed.Entry%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>updateCalendar</em>(<em>c</em> : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>) : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Update the given calendar subscription. The entry should have a link with a 'rel'
   field set to 'edit'. This method will connect to that link and issue an update request.
   Returns the updated calendar entry.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="getEvents%28String%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>getEvents</em>(<em>url</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Retrieve events found at the given URL.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>UnknownDocumentException - </code>if the feed is not an event feed.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="getEvents%28java.net.URL%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>getEvents</em>(<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Retrieve events found at the given URL.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>UnknownDocumentException - </code>if the feed is not an event feed.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="getEvents%28String%2CString%2Ccom.google.gdata.Query%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>getEvents</em>(<em>visibility</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>projection</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>q</em> : <a href="../../../../com/google/gdata/Query.html" target="_self">Query</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Retrieve events based on their visibility and with the amount of detail given by
   the 'projection' parameter.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>See Also</b></dt><dd><a href="http://code.google.com/apis/calendar/reference.html#Projection">http://code.google.com/apis/calendar/reference.html#Projection</a></dd><dd><a href="../../../../com/google/gdata/calendar/CalendarService.html" target="_self">com.google.gdata.calendar.CalendarService</a></dd><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>UnknownDocumentException - </code>if the feed is not an event feed.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="getEvents%28String%2CString%2CString%2Ccom.google.gdata.Query%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>getEvents</em>(<em>username</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>visibility</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>projection</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>, <em>q</em> : <a href="../../../../com/google/gdata/Query.html" target="_self">Query</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Retrieve events for the given user, based on their visibility and with the amount 
   of detail given by the 'projection' parameter.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>See Also</b></dt><dd><a href="http://code.google.com/apis/calendar/reference.html#Projection">http://code.google.com/apis/calendar/reference.html#Projection</a></dd><dd><a href="../../../../com/google/gdata/calendar/CalendarService.html" target="_self">com.google.gdata.calendar.CalendarService</a></dd><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>UnknownDocumentException - </code>if the feed is not an event feed.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="addEvent%28java.net.URL%2CCalendarService.this.eventsFeed.Entry%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>addEvent</em>(<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>, <em>e</em> : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>) : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Add the given event to the user's calendar. Returns the event with possible new
   fields added by the server. The event should not have the id field set.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>IllegalArgumentException - </code>if the 'id' field is defined.</dd><dd><code>UnknownDocumentException - </code>if the feed is not an event feed.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="updateEvent%28CalendarService.this.eventsFeed.Entry%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>updateEvent</em>(<em>e</em> : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>) : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Update the given event on the server. Returns the updated event, as returned by
   the server. The given event should have a link with a 'rel' field set to 'edit'.
   This method will connect to that link and issue an update request.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>IllegalArgumentException - </code>if the 'id' field is defined.</dd><dd><code>UnknownDocumentException - </code>if the feed is not an event feed.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="updateEvent%28java.net.URL%2CCalendarService.this.eventsFeed.Entry%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>updateEvent</em>(<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>, <em>e</em> : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>) : <a href="../../../../com/google/gdata/data/kinds/EventEntries.EventEntry.html" target="_self">EventEntry</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Update the given event on the server. Returns the updated event, as returned by
   the server.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>UnknownDocumentException - </code>if the feed is not an event feed.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="getAccessControlList%28java.net.URL%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>getAccessControlList</em>(<em>url</em> : <a href="" target="contentFrame" class="java/net/URL">java.net.URL</a>) : <a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Retrieve the access control list for the calender at the given URL. The acl feed URL
   is found in a link element with rel set to http//schemas.google.com/acl/2007#accessControlList.
   Only owners of a calendar can retrieve the ACL feed.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>UnknownDocumentException - </code>if the feed is not an event feed.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr>
<a name="getAccessControlList%28CalendarService.this.calendarsFeed.Entry%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>getAccessControlList</em>(<em>cal</em> : <a href="../../../../com/google/gdata/calendar/CalendarEntries.CalendarEntry.html" target="_self">CalendarEntry</a>) : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="../../../../com/google/gdata/data/AtomFeeds.AtomFeed.html" target="_self">AtomFeed</a>]
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Retrieve the access control list for the given calender. Only owners of a calendar
   can retrieve the ACL feed. Returns the ACL feed if the calendar has the ACL link,
   or None.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>UnknownDocumentException - </code>if the feed is not an event feed.</dd><dd><code>AuthenticationException - </code>(one of its subclasses) if the operation fails because           of insufficient rights.</dd><dd><code>IOException - </code>if there are connection issues.</dd><dd><code>GDataRequestException - </code>if there are HTTP errors.</dd></dl>
    <hr></hr></div>


    <hr></hr>
        <table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">GData Scala Client Library Documentation</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
      </body>
      </html>